package com.springboot.mail.modules.contact.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @TableName contact_group
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tb_contact_group")
public class ContactGroupDO implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String groupId;
    /**
     *
     */
    private String groupName;
    /**
     *
     */
    private String contactId;

    @TableLogic
    @JsonInclude(JsonInclude.Include.NON_NULL)// 转JSON时忽略null
    private Integer isdeleted;
}